package com.zemb.flxwear.TaskQueue;

import com.zemb.flxwear.Bean.ReportItem;
import com.zemb.flxwear.Utils.DeviceUtils;

public class BaseTask {
    //是否完成
    private boolean isFinished = false;
    private DeviceUtils.Category type;
    private boolean isConnected = false;
    private ReportItem result;
    private boolean isSuccess = false;

    public BaseTask(DeviceUtils.Category type) {
        this.type = type;

    }

    public void setFinished(boolean finished) {
        isFinished = finished;
    }
    public boolean getFinished() {
        return isFinished;
    }

    //任务类型
    public void setType(DeviceUtils.Category type) {
        this.type = type;
    }
    public DeviceUtils.Category getType() {
        return type;
    }


    //设备是否连接
    public void setConnected(boolean connected) {
        isConnected = connected;
    }
    public boolean getConnected() {
        return isConnected;
    }

    //任务结果
    public void setResult(ReportItem result) {
        this.result = result;
    }
    public ReportItem getResult() {
        return result;
    }

    //任务是否成功
    public void setSuccess(boolean success) {
        isSuccess = success;
    }
    public boolean getSuccess() {
        return isSuccess;
    }

}
